package com.lucifer.d.security.service.gateway.model;

import lombok.Data;

/**
 * @author Lucifer
 * @create 2023 - 03 - 05 10:32
 */
@Data
public class AuthPacking {

    /**
     * 请求对应范围
     */
    private String scope;

    /**
     * 请求对应权限
     */
    private String auth;

    /**
     * 请求协议
     */
    private String method;

    /**
     * 请求地址
     */
    private String path;

    public AuthPacking() {
    }

    public AuthPacking(String scope, String auth, String method, String path) {
        this.scope = scope;
        this.auth = auth;
        this.method = method;
        this.path = path;
    }

    public static AuthPacking packing(String scope, String auth, String method, String path){
        return new AuthPacking(scope, auth, method, path);
    }

}
